package com.fc.services.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fc.dao.UserDao;
import com.fc.entities.User;
import com.fc.services.UserService;

/**
 * 
 * @author Ács Ádám
 *
 */
@Transactional
@Service("userService")
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDao userDao;
	
	@Override
	public void save(User user) {
		userDao.save(user);
	}
	
	public UserServiceImpl() {
		super();
	}

	@Override
	public User findByUserName(String username) {
		return userDao.findByUserName(username);
	}
}
